package com.guli.common.dto;

//import lombok.Data;

//@Data
public class R<T> {
    private int code;
    private String message;
    private T data;

    public static<T> R<T> ok(T data){
        R<T> r = new R<T>();
        r.code = 200;
        r.data = data;
        return r;
    }

    public static<T> T okTip(String message){
        R<T> r = new R<T>();
        r.code = 200;
        r.message = message;
        return (T) r;
    }


}
